<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class LikeRequest extends BaseRequest
{

    public function rules()
    {
        return [
            'name' => 'required',
            'mobile' => 'required|regex:/^1[3456789]\d{9}$/',
            'iid' => 'required',
        ];
    }

    public function attributes()
    {
        return [
            'name' => '姓名',
            'mobile' => '手机号',
            'iid' => '保险id',
        ];
    }
}
